package com.bxl;

import com.bxl.pojo.News;

import java.sql.Connection;
import java.sql.Timestamp;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
         insertNews insertNews = new insertNewsImpl();

        News news = new News();
        news.setId(7);
        news.setTitle("222");
        news.setCategoryId(1);
        news.setCreatedate(new Timestamp(new Date().getTime()));
        news.setContent("24324");
        news.setSummary("ddd");

         insertNews.insNews(news);
    }
}
